package com.study.design.pattern.pattern.creational.factorymethod;

/**
 * @Author: gongsl
 * @Date: 2025-01-15 21:42
 * @description:
 */
public abstract class Factory {
    public abstract Product factoryMethod();

    public void addProduct() {
        Product product = this.factoryMethod();
        product.addProduct();
    }
}
